package com.ms.exception;

import http.util.FullHttpResponseUtil;
import io.netty.handler.codec.http.HttpResponseStatus;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.servlet.ModelAndView;

@ControllerAdvice
public class DefualtExceptionHandler {

    @ExceptionHandler(Exception.class)
    public String errorJson(Exception e){
        e.printStackTrace();
        return "处理错误...hui";

    }


}
